package com.ls.thread.ch04.test;

import com.ls.thread.ch04.demo01.TicketRunnable;

public class TicketTestRunnableStatic {

/**
 * 实现Runnable
 * @param args
 */
public static void main(String[] args) {
	
	TicketRunnable tr=new TicketRunnable();
	Thread t=new Thread(tr);
	Thread t1=new Thread(tr);
	Thread t2=new Thread(tr);
	
		
	t.setName("窗口1");
	t1.setName("窗口2");
	t2.setName("窗口3");
	
	t.start();
	t1.start();
	t2.start();
		
	}
}
